<?php
/**
 * Applications view
 * 
 * @package    	PVP
 * @author		Sergey Sysoev
 * @copyright	PetroMS Ltd.
 */

// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.view' );

class ReportManagerViewCourseType extends JView
{
	function display($tpl = null)
	{
		$task = JRequest::getVar('task');
		
		if ($task == 'edit' || $task == 'add') {
			$tmprow = $this->get('Data');
			$row = & $tmprow;
		
			$this->assignRef( 'ct',	$row );
			
			$this->setLayout( 'form'  );
			parent::display($tpl);
		} else {														
			$items = $this->get( 'List' );
			$this->assignRef( 'items', $items );
							
			$this->setLayout( 'default'  );
			parent::display( $tpl );
		}							
	}
}